package com.mooc.yohoshop.ui.category;

import android.widget.BaseAdapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.mooc.yohoshop.R;
import com.mooc.yohoshop.entity.MenuEntity;

import org.jetbrains.annotations.NotNull;

public class CategoryMenuAdapter extends BaseQuickAdapter<MenuEntity.Values, BaseViewHolder> {
    public CategoryMenuAdapter() {
        super(R.layout.item_menu);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, MenuEntity.Values values) {
        baseViewHolder.setVisible(R.id.menu_line,values.sel);
        baseViewHolder.setText(R.id.menu_title,values.menu_name);
    }
}
